import gtk, conf

class Main:
    def __init__(self, *args):
        self.__glade = gtk.glade.XML(conf.GLADE_MAIN_WINDOW, conf.ABOUT_DIALOG)
        self.__dialog = self.__glade.get_widget(conf.ABOUT_DIALOG)
        
        self.__dialog.set_icon_from_file(conf.DATA_DIR +"/img/logo_minimal.png")
        self.__dialog.set_name(conf.APP_NAME)    
        self.__dialog.set_version(conf.APP_VERSION)
        self.__dialog.set_logo(gtk.gdk.pixbuf_new_from_file(conf.DATA_DIR +"/img/logo_medium.png"))
        self.__dialog.set_license(conf.LICENSE)

        self.__dialog.run()
        self.__dialog.destroy()